package com.itany.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Description: 类的描述
 * Author: SJY
 * Date: 2021/08/26 09:25
 * Version: 1.0 版本信息
 */
public class Book implements Serializable {
    private Integer id;

    private String bookname;

    private String author;

    @JSONField(format = "yyyy-MM-dd")
    private Date publishdate;
    //团购价格
    private BigDecimal groupprice;
    //单价
    private BigDecimal price;
    //开本
    private String format;
    //页数
    private Integer pagenumber;
    //ISBN
    private Integer iSBN;
    //条形码
    private String barcode;
    //版次
    private Integer layout;
    //印刷次数
    private Integer printingnumber;
    //册数
    private String register;
    //重量
    private String weight;
    //书籍介绍
    private String bookintroduce;
    //书籍介绍
    private String authorintroduce;
    //目录
    private String catalog;
    //书籍类型
    private Integer typeid;
    //入库时间
    @JSONField(format = "yyyy-MM-dd")
    private Date createtime;
    //出版社
    private Integer pressid;
    //库存数量
    private Integer number;
    //封面图片
    private String imgurl;
    //状态
    private Integer flag;
    //推荐类型
    private Integer recommend;

    public Book() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getPublishdate() {
        return publishdate;
    }

    public void setPublishdate(Date publishdate) {
        this.publishdate = publishdate;
    }

    public BigDecimal getGroupprice() {
        return groupprice;
    }

    public void setGroupprice(BigDecimal groupprice) {
        this.groupprice = groupprice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public Integer getPagenumber() {
        return pagenumber;
    }

    public void setPagenumber(Integer pagenumber) {
        this.pagenumber = pagenumber;
    }

    public Integer getISBN() {
        return iSBN;
    }

    public void setISBN(Integer ISBN) {
        this.iSBN = ISBN;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public Integer getLayout() {
        return layout;
    }

    public void setLayout(Integer layout) {
        this.layout = layout;
    }

    public Integer getPrintingnumber() {
        return printingnumber;
    }

    public void setPrintingnumber(Integer printingnumber) {
        this.printingnumber = printingnumber;
    }

    public String getRegister() {
        return register;
    }

    public void setRegister(String register) {
        this.register = register;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getBookintroduce() {
        return bookintroduce;
    }

    public void setBookintroduce(String bookintroduce) {
        this.bookintroduce = bookintroduce;
    }

    public String getAuthorintroduce() {
        return authorintroduce;
    }

    public void setAuthorintroduce(String authorintroduce) {
        this.authorintroduce = authorintroduce;
    }

    public String getCatalog() {
        return catalog;
    }

    public void setCatalog(String catalog) {
        this.catalog = catalog;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getPressid() {
        return pressid;
    }

    public void setPressid(Integer pressid) {
        this.pressid = pressid;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookname='" + bookname + '\'' +
                ", author='" + author + '\'' +
                ", publishdate=" + publishdate +
                ", groupprice=" + groupprice +
                ", price=" + price +
                ", format='" + format + '\'' +
                ", pagenumber=" + pagenumber +
                ", iSBN=" + iSBN +
                ", barcode='" + barcode + '\'' +
                ", layout=" + layout +
                ", printingnumber=" + printingnumber +
                ", register='" + register + '\'' +
                ", weight='" + weight + '\'' +
                ", bookintroduce='" + bookintroduce + '\'' +
                ", authorintroduce='" + authorintroduce + '\'' +
                ", catalog='" + catalog + '\'' +
                ", typeid=" + typeid +
                ", createtime=" + createtime +
                ", pressid=" + pressid +
                ", number=" + number +
                ", imgurl='" + imgurl + '\'' +
                ", flag=" + flag +
                ", recommend=" + recommend +
                '}';
    }
}
